VT-d: consider hidden devices when unmapping
authorJan Beulich <jbeulich@suse.com>
Mon, 20 Sep 2021 08:24:27 +0000 (10:24 +0200)
committerJan Beulich <jbeulich@suse.com>
Mon, 20 Sep 2021 08:24:27 +0000 (10:24 +0200)
commit75bfe6ec4844f83b300b9807bceaed1e2fe23270
treef51aa43c213b5c4cbcf772b7f20a07dd5a632a51
parentda2c65815c062fd012b7b77eee76be0905eb29f6
VT-d: consider hidden devices when unmapping

Whether to clear an IOMMU's bit in the domain's bitmap should depend on
all devices the domain can control. For the hardware domain this
includes hidden devices, which are associated with DomXEN.

While touching related logic
- convert the "current device" exclusion check to a simple pointer
  comparison,
- convert "found" to "bool",
- adjust style and correct a typo in an existing comment.

Signed-off-by: Jan Beulich <jbeulich@suse.com>
Reviewed-by: Kevin Tian <kevin.tian@intel.com>
xen/drivers/passthrough/vtd/iommu.c